how to solve self intersection geometry